package com.neural.neighbourhood;

import java.util.ArrayList;
import java.util.List;

import com.neural.descriptor.Point;
import com.neural.descriptor.SizeDescriptor;

public class CrossNeighbourhood extends Neighbourhood {

	public CrossNeighbourhood() {
		super("cross");
	}

	@Override
	public List<Point> getPointsFor(Point point, SizeDescriptor size, Integer neighbourSize) {
		List<Point> points = new ArrayList<Point>(4);
		points.addAll(NeighbourhoodManager.getNeighbourhoodFromName("x").getPointsFor(point, size, neighbourSize));
		points.addAll(NeighbourhoodManager.getNeighbourhoodFromName("y").getPointsFor(point, size, neighbourSize));
		return points;
	}
}
